package com.briup.pts.domain.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PastOrPresent;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 栏舍信息表
* @TableName manager_fence_house
*/
@Data
public class FenceHouse implements Serializable {

    /**
    * 栏舍id
    */
    private String fhId;
    /**
    * 栏舍名称
    */
    @NotBlank(message = "栏舍名称必须上传")
    private String fhName;
    /**
    * 栏舍描述
    */
    @NotBlank(message = "栏舍描述必须上传")
    private String fhDesc;
    /**
    * 栏舍创建时间
    */
    @PastOrPresent(message = "创建时间不能晚于当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "栏舍创建时间必须上传")
    private LocalDateTime fhTime;
}

